package com.xq.jltx.javajni;

import com.xq.jltx.bean.DataBean;

import java.util.ArrayList;

/**
 * @author jltxseo
 * Created by junlintianxia on 2019/04/23.
 */
public class DataObjProvider {
    static {
        System.loadLibrary("ndkoperatorjava");
    }

    /**
     * 在Native层返回一个DataBean对象
     * @return
     */
    public static native DataBean getDataBeanInfo();

    /**
     * 传递复杂的DataBean对象到Native层
     * @param dataBean
     */
    public static native void setDataBeanInfo(DataBean dataBean);

    /**
     * 在Native层返回ArrayList集合
     * @return
     */
    public static native ArrayList<DataBean> getListDataBeans();

    public static native String testLocalRefFromJNI();

    public static native String testGlobalRefFromJNI();

    public static native String testWeakRefFromJNI();
}
